package org.example.implaoptwoway.aspectAnnoation;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class LoggingAspect {

    @Before("execution(public * org.example.implaoptwoway.aspectAnnoation.UserDao.*(..))")
    public void doAccessCheck() {
        System.err.println("[Before] do access check...");
    }

}